Part Number Hot Search : 
T2400 ADG733 A1006 ZVG90W SMBJ18A MAX4103 100355PC 0000MH
Product Description
Full Text Search
 

To Download SABC541U-1EN Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  'dwd6khhw 0lfurfrpsxwhu&rpsrqhqwv %lw&0260lfurfrqwuroohu &8 ht t p: / / ww w . si e m en s. d s em i c onduct or /
edition 05.99 this edition was realized using the software system framemaker a . published by siemens ag, bereich halbleiter, marketing- kommunikation, balanstra?e 73, 81541 mnchen ? siemens ag 6/2/99. all rights reserved. attention please! as far as patents or other rights of third parties are concerned, liability is only assumed for components, not for application s, pro- cesses and circuits implemented within components or assemblies. the information describes the type of component and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens com- panies and representatives worldwide (see address list). due to technical requirements components may contain dangerous substances. for information on the types in question please con- tact your nearest siemens office, semiconductor group. siemens ag is an approved cecc manufacturer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreeme nt we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for an y costs incurred. components used in life-support devices or systems must be expressly authorized for such purpose! c541u data sheet revision history : 05.99 previous releases : 10.97(original version) page (10.97 version) page (05.99 version) subjects (changes since last revision) all sections all sections 1 2 2 2 4 5 6 to 9 21 22 24 31 38 39 to 40 43 43 43 - 44 44 44 44 45 45 46 59 61 63 all sections all sections 1 2 2 2 4 5 5 to 8 20 22 24 31 37 38 to 39 42 42 42 42 43 43 43 43 44 44 45 58 60 61 all references to c540u is removed. v cc is changed to v dd . compliant to usb specification rev 1.0. power supply voltage range changed to 4.25v to 5.5v. line * p-sdip-52 package ... is added. table 1 is removed and replaced by ordering information. figure 3; pin 2 is changed to ecap. figure 4 is removed. table 1; column p-sdip-52 is deleted and any references to p-sdip-52 is also removed, the definition of pin 2 is changed to ecap. table 3; modified with addition of bit drvi in gepir register. table 4; modified with addition of bits drvie and xvreg in dpwdr register. first sentence; reference to p-sdip-52 is removed. figure 16 is modified to include drvi and drvie. figure 22 is removed. table 8; column p-sdip-52 is removed. absolute maximum ratings is changed to tabular form. fifth line; during overload conditions ... changed to during absolute maximum rating conditons .... operating conditions is added. v dd is changed to 4.25v to 5.5v (5v +10%, -15%) v cc = 5 v + 10% ... is replaced by (operating conditions apply). v ih min of ea is changed to 0.6 v dd . v ol max of port 0 is changed to 0.6 v. i il max is changed to -60 a. values for i dd (active and idle mode) and i pd notes (6); modified. v cc = 5 v + 10% ... is replaced by (operating conditions apply). v cc = 5 v + 10% ... is replaced by (operating conditions apply). figure 37 is added. figure 40 is removed.
semiconductor group 1 c541u 8-bit cmos microcontroller advance information c541u ? enhanced 8-bit c500 cpu C full software/toolset compatible to standard 80c51/80c52 microcontrollers ? 12 mhz external operating frequency C 500 ns instruction cycle ? built-in pll for usb synchronization ? on-chip otp program memory C 8k byte C alternatively up to 64k byte external program memory C optional memory protection ? on-chip usb module C compliant to usb specification rev1.0 C full speed or low speed operation C five endpoints : one bidirectional control endpoint four versatile programmable endpoints C registers are located in special function register area C on-chip usb transceiver figure 1 c541u functional units ssc t0 t1 cpu port 0 port 1 port 2 port 3 i/o i/o otp prog. memory watchdog i/o i/o on-chip emulation support module module ram 256 8 timer oscillator watchdog power saving modes usb transceiver d+ d- usb 8k 8
semiconductor group 2 c541u features (continued) : ? up to 64k byte external data memory ? 256 byte on-chip ram ? four parallel i/o ports C p-lcc-44 package : three 8-bit ports and one 6-bit port C p-sdip-52* package : four 8-bit ports C led current drive capability for 3 pins (10 ma) ? two 16-bit timer/counters (c501 compatible) ? ssc synchronous serial interface (spi compatible) C master and slave capable C programmable clock polarity / clock-edge to data phase relation C lsb/msb first selectable C 1.5 mbaud transfer rate at 12 mhz operating frequency ? 7 interrupt sources (2 external, 5 internal with 2 usb interrupts) selectable at 2 priority levels ? enhanced fail safe mechanisms C programmable watchdog timer C oscillator watchdog ? power saving modes C idle mode C software power down mode with wake-up capability through int0 pin or usb ? on-chip emulation support logic (enhanced hooks technology tm ) ? p-lcc-44 and p-sdip-52* packages ? power supply voltage range : 4.25v to 5.5v ? temperature range : t a = 0 to 70 c * p-sdip-52 package is available on specific request from customer
semiconductor group 3 c541u figure 2 logic symbol port 0 8-bit digital i/o reset ea ale psen xtal2 xtal1 port 1 6-bit digital i/o port 2 8-bit digital i/o port 3 8-bit digital i/o v ss v dd d+ d- c541u
semiconductor group 4 c541u figure 3 pin configuration (top view) p1.5/sls p1.3/sri 6 7 8 9 10 11 12 13 14 15 16 17 5 4 3 2 1 4443424140 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 p1.1/led1 p1.0/led0 d- d+ ecap v ddu p1.2/sclk v dd v ss p3.0/led2 p3.1/dadd p3.2/int0 p3.3/int1 p3.4/t0 p3.5/t1 p3.6/wr p3.7/rd xtal2 xtal1 v ss v dd p2.0/a8 p2.1/a9 p2.2/a10 p2.3/a11 p2.4/a12 reset p0.3/ad3 p0.2/ad2 p0.1/ad1 p0.0/ad0 p0.4/ad4 p0.5/ad5 p0.6/ad6 p0.7/ad7 ea p1.4/sto psen p2.7/a15 p2.6/a14 p2.5/a13 ale 28 c541u
semiconductor group 5 c541u table 1 pin definitions and functions symbol pin numbers i/o*) function p-lcc-44 d+ 3 i/o usb d+ data line the pin d+ can be directly connected to usb cable (transceiver is integrated on-chip). d- 4 i/o usb d- data line the pin d- can be directly connected to usb cable (transceiver is integrated on-chip). p1.0 - p1.4 5 - 7, 12, 34, 44 5 6 7 12 34 44 i/o port 1 is an 6-bit quasi-bidirectional i/o port with internal pullup resistors. port 1 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 1 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 1 also contains two outputs with led drive capability as well as the four pins of the ssc. the pins with led drive capability are able to sink current up to 10 ma. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate (except when used for the compare functions). the secondary functions are assigned to the port 1 pins as follows : p1.0 / led0 led0 output p1.1 / led1 led1 output p1.2 / sclk ssc master clock output / ssc slave clock input p1.3 / sri ssc receive input p1.4 / sto ssc transmit output p1.5 / sls ssc slave select inp. reset 10 i reset a high level on this pin for the duration of two machine cycles while the oscillator is running resets the c541u. a small internal pulldown resistor permits power-on reset using only a capacitor connected to v dd . *) i = input o = output
semiconductor group 6 c541u p3.0 - p3.7 11, 13 - 19 11 13 14 15 16 17 18 19 i/o port 3 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 3 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 3 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 3 also contains the interrupt, timer, serial port and external memory strobe pins that are used by various options. the pin with led drive capability are able to sink current up to 10 ma. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 3, as follows: p3.0 / led2 led2 output p3.1 / dadd device attached input p3.2 / int0 external interrupt 0 input / timer 0 gate control input p3.3 / int1 external interrupt 1 input / timer 1 gate control input p3.4 / t0 timer 0 counter input p3.5 / t1 timer 1 counter input p3.6 / wr wr control output; latches the data byte from port 0 into the external data memory p3.7 / rd rd control output; enables the external data memory xtal2 20 C xtal2 is the output of the inverting oscillator amplifier. this pin is used for the oscillator operation with crystal or ceramic resonator. xtal1 21 C xtal1 is the input to the inverting oscillator amplifier and input to the internal clock generator circuits. to drive the device from an external clock source, xtal1 should be driven, while xtal2 is left unconnected. minimum and maximum high and low times as well as rise/fall times specified in the ac characteristics must be observed. *) i = input o = output table 1 pin definitions and functions (contd) symbol pin numbers i/o*) function p-lcc-44
semiconductor group 7 c541u p2.0 - p2.7 24 - 31 i/o port 2 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 2 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 2 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movx @dptr). in this application it uses strong internal pullup resistors when issuing 1's. during accesses to external data memory that use 8-bit addresses (movx @ri), port 2 issues the contents of the p2 special function register. psen 32 o the program store enable output is a control signal that enables the external program memory to the bus during external fetch operations. it is activated every three oscillator periods except during external data memory accesses. the signal remains high during internal program execution. ale 33 o the address latch enable output is used for latching the address into external memory during normal operation. it is activated every three oscillator periods except during an external data memory access. ea 35 i external access enable when held high, the c541u executes instructions from the internal otp program memory as long as the pc is less than 2000 h for the c541u. when held low, the c541u fetches all instructions from external program memory. for the c541u-l this pin must be tied low. p0.0 - p0.7 43 - 36 i/o port 0 is an 8-bit open-drain bidirectional i/o port. port 0 pins that have 1's written to them float, and in that state can be used as high- impedance inputs. port 0 is also the multiplexed low-order address and data bus during accesses to external program and data memory. in this application it uses strong internal pullup resistors when issuing 1's. *) i = input o = output table 1 pin definitions and functions (contd) symbol pin numbers i/o*) function p-lcc-44
semiconductor group 8 c541u ecap 2 C external capacitor this pin is required to be connected to an external capacitor which is connected to v ss . the recommended value for the capacitor is 6.8 nf. v ddu 1C supply voltage for the on-chip usb transceiver circuitry v dd 8, 23 C supply voltage for ports and internal logic circuitry during normal, idle, and power down mode. v ss 9, 22 C ground (0v) during normal, idle, and power down mode. *) i = input o = output table 1 pin definitions and functions (contd) symbol pin numbers i/o*) function p-lcc-44
semiconductor group 9 c541u figure 4 block diagram of the c541u port 0 8-bit digit. i/o port 2 8-bit digit. i/o port 3 8-bit digit. i/o port 0 port 1 port 2 port 3 osc & timing cpu timer 0 interrupt unit xtal2 xtal1 reset ale psen ea port 1 6-bit digit. i/o 256 x 8 ram timer progr. watchdog emulation support logic oscillator watchdog otp timer 1 ssc (spi) interface usb module memory d+ d- c541u 8k x 8 pll transceiver
semiconductor group 10 c541u cpu the c541u is efficient both as a controller and as an arithmetic processor. it has extensive facilities for binary and bcd arithmetic and excels in its bit-handling capabilities. efficient use of program memory results from an instruction set consisting of 44 % one-byte, 41 % two-byte, and 15% three- byte instructions. with a 12 mhz crystal, 58% of the instructions are executed in 500ns. special function register psw (address d0 h ) reset value : 00 h bit function cy carry flag used by arithmetic instruction. ac auxiliary carry flag used by instructions which execute bcd operations. f0 general purpose flag rs1 rs0 register bank select control bits these bits are used to select one of the four register banks. ov overflow flag used by arithmetic instruction. f1 general purpose flag p parity flag set/cleared by hardware after each instruction to indicate an odd/even number of "one" bits in the accumulator, i.e. even parity. cy ac f0 rs1 rs0 ov f1 p d0 h psw d7 h d6 h d5 h d4 h d3 h d2 h d1 h d0 h bit no. msb lsb rs1 rs0 function 0 0 bank 0 selected, data address 00 h -07 h 0 1 bank 1 selected, data address 08 h -0f h 1 0 bank 2 selected, data address 10 h -17 h 1 1 bank 3 selected, data address 18 h -1f h
semiconductor group 11 c541u memory organization the c541u cpu manipulates operands in the following four address spaces: C 8kbyte on-chip otp program memory C totally up to 64 kbyte internal/external program memory C up to 64 kbyte of external data memory C 256 bytes of internal data memory C a 128 byte special function register area figure 5 illustrates the memory address spaces of the c541u. figure 5 c541u memory map memory map ffff h 2000 h 1fff h 0000 h "code space" internal (ea = 1) external (ea = 0) "internal data space" indirect direct addr. 7f h 00 h internal ram special function register 80 h ff h 80 h ff h addr. external internal ram "external data space" 0000 h ffff h external
semiconductor group 12 c541u reset and system clock the reset input is an active high input at pin reset. since the reset is synchronized internally, the reset pin must be held high for at least two machine cycles (12 oscillator periods) while the oscillator is running. a pulldown resistor is internally connected to v ss to allow a power-up reset with an external capacitor only. an automatic reset can be obtained when v dd is applied by connecting the reset pin to v dd via a capacitor. figure 6 shows the possible reset circuitries. figure 6 reset circuitries reset + a) reset b) & reset c) v dd + v dd v dd c541u c541u c541u
semiconductor group 13 c541u the oscillator and clock generation circuitry of the c541u is shown in figure 5-7 . the crystal oscillator generates the system clock for the microcontroller. the usb module can be provided with the following clocks : C full speed operation : 48 mhz with a data rate of 12 mbit/s C low speed operation : 6 mhz with a data rate of 1.5 mbit/s the low speed clock is generated by a dividing the system clock by 2. the full speed clock is generated by a pll, which multiplies the system clock by a fix factor of 4. this pll can be enabled or disabled by bit pclk of sfr dcr. depending on full or low speed operation of the usb bit speed of sfr has to be set or cleared for the selection of the usb clock. bit uclk is a general enable bit for the usb clock. figure 7 block diagram of the clock generation circuitry xtal1 crystal oscillator 12 xtal2 pin pin system clock of the microcontroller 6 mhz mhz uclk dcr.1 pll x 4 48 mhz 0 1 divider by 2 speed dcr.7 to usb module dcr.0 pclk enable 12 mhz c541u
semiconductor group 14 c541u the clock generator provides the internal clock signals to the chip. these signals define the internal phases, states and machine cycles. figure 8 shows the recommended oscillator circuits for crystal and external clock operation. figure 8 recommended oscillator circuitries xtal1 xtal2 c c 12 mhz c = 20pf 10pf for crystal operation c541u external clock signal v dd n.c. xtal2 xtal1 c541u
semiconductor group 15 c541u enhanced hooks emulation concept the enhanced hooks emulation concept of the c500 microcontroller family is a new, innovative way to control the execution of c500 mcus and to gain extensive information on the internal operation of the controllers. emulation of on-chip rom based programs is possible, too. each production chip has built-in logic for the supprt of the enhanced hooks emulation concept. therefore, no costly bond-out chips are necessary for emulation. this also ensure that emulation and production chips are identical. the enhanced hooks technology tm 1) , which requires embedded logic in the c500 allows the c500 together with an eh-ic to function similar to a bond-out chip. this simplifies the design and reduces costs of an ice-system. ice-systems using an eh-ic and a compatible c500 are able to emulate all operating modes of the different versions of the c500 microcontrollers. this includes emulation of rom, rom with code rollover and romless modes of operation. it is also able to operate in single step mode and to read the sfrs after a break. figure 9 basic c500 mcu enhanced hooks concept configuration port 0, port 2 and some of the control lines of the c500 based mcu are used by enhanced hooks emulation concept to control the operation of the device during emulation and to transfer informations about the programm execution and data transfer between the external emulation hardware (ice-system) and the c500 mcu. 1 enhanced hooks technology is a trademark and patent of metalink corporation licensed to siemens. mcs02647 syscon pcon tcon reset ea psen ale port 0 port 2 i/o ports optional port 3 port 1 c500 mcu interface circuit enhanced hooks rport 0 rport 2 rtcon rpcon rsyscon tea tale tpsen eh-ic target system interface ice-system interface to emulation hardware
semiconductor group 16 c541u special function registers the registers, except the program counter and the four general purpose register banks, reside in the special function register area. the special function register area consists of two portions: the standard special function register area and the mapped special function register area. one special function register of the c541u (pcon1) is located in the mapped special function register area. all other sfrs are located in the standard special function register area. for accessing pcon1 in the mapped special function register area, bit rmap in special function register syscon must be set. special function register syscon (address b1 h ) reset value : xx10xxxx b as long as bit rmap is set, a mapped special function register can be accessed. this bit is not cleared by hardware automatically. thus, when non-mapped/mapped registers are to be accessed, the bit rmap must be cleared/set by software, respectively each. the registers, except the program counter and the four general purpose register banks, reside in the special function register area. all sfrs with addresses where address bits 0-2 are 0 (e.g. 80 h , 88 h , 90 h , 98 h , ..., f8 h , ff h ) are bitaddressable. the 75 special function registers (sfrs) in the sfr area include pointers and registers that provide an interface between the cpu and the other on-chip peripherals. the sfrs of the c541u are listed in table 2 to table 4 . in table 2 they are organized in groups which refer to the functional blocks of the c541u. table 4 and table 4 illustrate the contents of the sfrs in numeric order of their addresses. bit function rmap special function register map bit rmap = 0 : the access to the non-mapped (standard) special function register area is enabled. rmap = 1 : the access to the mapped special function register area (pcon1) is enabled. 76543210 eale rmap C b1 h syscon bit no. msb lsb CC CC C the functions of the shaded bits are not described in this section.
semiconductor group 17 c541u table 2 special function registers - functional blocks block symbol name address contents after reset cpu acc b dph dpl psw sp vr0 vr1 vr2 syscon accumulator b register data pointer, high byte data pointer, low byte program status word register stack pointer version register 0 version register 1 version register 2 system control register e0 h 1) f0 h 1) 83 h 82 h d0 h 1) 81 h fc h fd h fe h b1 h 00 h 00 h 00 h 00 h 00 h 07 h c5 h c1 h yy h 3) xx10xxxx b 2) interrupt system ien0 ien1 ip0 ip1 itcon interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 interrupt priority register 1 external interrupt trigger condition register a8 h 1) a9 h b8 h 1) b9 h ) 9a h 0xxx0000 b 2) xxxxx000 b 2) xxxx0000 b 2) xxxxx000 b 2) xxxx1010 b 2) ports p0 p1 p2 p3 port 0 port 1 port 2 port 3 80 h 1) 90 h 1) a0 h 1) b0 h 1) ff h ff h ff h ff h timer 0 / timer 1 tcon th0 th1 tl0 tl1 tmod timer 0/1 control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register 88 h 1) 8c h 8d h 8a h 8b h 89 h 00 h 00 h 00 h 00 h 00 h 00 h ssc interface ssccon stb srb scf scien sscmod ssc control register ssc transmit buffer ssc receive register ssc flag register ssc interrupt enable register ssc mode test register 93 h 1) 94 h 95 h ab h 1 ) ac h 96 h 07 h xx h 2) xx h 2) xxxxxx00 b 2) xxxxxx00 b 2) 00 h watchdog wdcon wdtrel watchdog timer control register watchdog timer reload register c0 h 1) 86 h xxxx0000 b 2) 00 h 1) bit-addressable special function registers 2) x means that the value is undefined and the location is reserved 3) the content of this sfr varies with the actual of the step c541u (eg. 01 h for the first step) 4) this sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set.
semiconductor group 18 c541u pow. sav. modes pcon pcon1 power control register power control register 1 87 h 88 h 4) x00x0000 b 2) 0xx0xxxx b 2) usb module epsel usbval adroff gepir dcr dpwdr dier dirr fnrl fnrh epbcn 1) epbsn 1) epien 1) epirn 1) epban 1) eplenn 1) usbpwd 4) usbdcr 4) usbdr0 4) usbdr1 4) usbdr2 4) usbdr3 4) usbdr4 4) usbdr5 4) usbdr6 4) usbdr7 4) usb endpoint select register usb data register usb address offset register usb global endpoint interrupt request reg. usb device control register usb device power down register usb device interrupt control register usb device interrupt request register usb frame number register, low byte usb frame number register, high byte usb endpoint n buffer control register usb endpoint n buffer status register usb endpoint n interrupt enable register usb endpoint n interrupt request register usb endpoint n base address register usb endpoint n buffer length register usb power down register usb control register usb data register 0 usb data register 1 usb data register 2 usb data register 3 usb data register 4 usb data register 5 usb data register 6 usb data register 7 d2 h d3 h d4 h d6 h c1 h c2 h c3 h c4 h c6 h c7 h c1 h c2 h c3 h c4 h c5 h c6 h e6 h e7 h e8 h e9 h ea h eb h ec h ed h ee h ef h 80 h 00 h 00 h 2) 00 h 000x0000 b 00 h 00 h 00 h xx h 00000xxx b 00 h 20 h 00 h 10 h 3) 00 h 0xxxxxxx b 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 1) these register are multiple registers (n=0-4) with the same sfr address; selection of register n is done by sfr epsel. 2) the reset value of adroff is valid only if usbval has not been read or written since the last hardware reset. 3) the reset value of epir0 is 11 h . 4) these registers are only used in usb low-speed operation. table 2 special function registers - functional blocks (contd) block symbol name address contents after reset
semiconductor group 19 c541u table 3 contents of the sfrs, sfrs in numeric order of their addresses addr register reset value 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 80 h 2) p0 ff h .7 .6 .5 .4 .3 .2 .1 .0 81 h sp 07 h .7 .6 .5 .4 .3 .2 .1 .0 82 h dpl 00 h .7 .6 .5 .4 .3 .2 .1 .0 83 h dph 00 h .7 .6 .5 .4 .3 .2 .1 .0 86 h wdtrel 00 h wdt psel .6 .5 .4 .3 .2 .1 .0 87 h pcon x00x- 0000 b C pds idls C gf1 gf0 pde idle 88 h 2) tcon 00 h tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 88 h 2) 3) pcon1 0xx0- xxxx b ewpd C C ws C C C C 89 h tmod 00 h gate c/t m1 m0 gate c/t m1 m0 8a h tl0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8b h tl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 8c h th0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8d h th1 00 h .7 .6 .5 .4 .3 .2 .1 .0 90 h 2) p1 ff h .7 .6 sls sto sri sclk led1 led0 93 h ssccon 07 h scen ten mstr cpol cpha brs2 brs1 brs0 94 h stb xx h .7 .6 .5 .4 .3 .2 .1 .0 95 h srb xx h .7 .6 .5 .4 .3 .2 .1 .0 96 h sscmod 00 h loopb trio00000lsbsm 9a h itcon xxxx- 1010 b C C C C i1etf i1etr i0etf i0etr a0 h 2) p2 ff h .7 .6 .5 .4 .3 .2 .1 .0 a8 h 2) ien0 0xxx- 0000 b ea C C C et1 ex1 et0 ex0 a9 h ien1 xxxx- x000 b C C C C C eudi euei essc ab h scf xxxx- xx00 b CCCCCCwcoltc 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set.
semiconductor group 20 c541u ac h scien xxxx- xx00 b CCCCCCwcentcen b0 h 2) p3 ff h rd wr t1 t0 int1 int0 dadd led2 b1 h syscon xx10- xxxx b CCealermapCCCC b8 h 2) ip0 xxxx- 0000 b C C C C pt1 px1 pt0 px0 b9 h ip1 xxxx- x000 b C C C C C pudi puei pssc c0 h 2) wdcon xxxx- 0000 b C C C C owds wdts wdt swdt c1 h to c7 h usb device and endpoint register definition see table 3-3 d0 h 2) psw 00 h cy ac f0 rs1 rs0 ov f1 p d2 h epsel 80 h eps7 0 0 0 0 eps2 eps1 eps0 d3 h usbval 00 h .7 .6 .5 .4 .3 .2 .1 .0 d4 h adroff 00 h 6) 0 0 ao5 ao4 ao3 ao2 ao1 ao0 d6 h gepir 00 h drvi 0 0 epi4 epi3 epi2 epi1 epi0 e0 h 2) acc 00 h .7 .6 .5 .4 .3 .2 .1 .0 e6 h 7) usbpwd 00 h 00 suspie daddie susp dadd tpwd rpwd e7 h 7) usbdcr 00 h type3 type2 type1 type0 len3 len2 len1 len0 e8 h 7) usbdr0 00 h .7 .6 .5 .4 .3 .2 .1 .0 e9 h 7) usbdr1 00 h .7 .6 .5 .4 .3 .2 .1 .0 ea h 7) usbdr2 00 h .7 .6 .5 .4 .3 .2 .1 .0 eb h 7) usbdr3 00 h .7 .6 .5 .4 .3 .2 .1 .0 ec h 7) usbdr4 00 h .7 .6 .5 .4 .3 .2 .1 .0 ed h 7) usbdr5 00 h .7 .6 .5 .4 .3 .2 .1 .0 ee h 7) usbdr6 00 h .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. 4) these are read-only registers 5) the content of this sfr varies with the actual step of the c541u (e.g. 01 h for the first step) 6) the reset value of adroff is valid only if usbval has not been read or written since the last hardware reset 7) these registers are only used in usb low-speed operation. table 3 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr register reset value 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 21 c541u ef h 7) usbdr7 00 h .7 .6 .5 .4 .3 .2 .1 .0 f0 h 2) b 00 h .7 .6 .5 .4 .3 .2 .1 .0 fc h 3) 4) vr0 c5 h 11000101 fd h 3) 4) vr1 c1 h 11000001 fe h 3) 4) vr2 5) .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. 4) these are read-only registers 5) the content of this sfr varies with the actual step of the c541u (e.g. 01 h for the first step) 6) the reset value of adroff is valid only if usbval has not been read or written since the last hardware reset. 7) these registers are only used in usb low-speed operation. table 3 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr register reset value 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 22 c541u table 4 contents of the usb device and endpoint registers (addr. c1 h to c7 h ) addr register reset value bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 epsel = 1xxx.xxxx b device registers c1 h dcr 000x. 0000 b speed da swr susp dinit rsm uclk pclk c2 h dpwdr 00 h drvie xvreg 0 0 0 0 tpwd rpwd c3 h dier 00 h se0ie daie ddie sbie seie stie suie sofie c4 h dirr 00 h se0i dai ddi sbi sei sti sui sofi c5 h reserved c6 h fnrl xx h fnr7 fnr6 fnr5 fnr4 fnr3 fnr2 fnr1 fnr0 c7 h fnrh 0000. 0xxx b 0 0 0 0 0 fnr10 fnr9 fnr8 epsel = 0xxx.x000 b endpoint 0 registers c1 h epbc0 00 h stall0 0 0 gepie0 sofde0 ince0 0 dbm0 c2 h epbs0 20 h ubf0 cbf0 dir0 esp0 setrd0 setwr0 clrep0 done0 c3 h epie0 00 h aie0 naie0 rleie0 C dnrie0 nodie0 eodie0 sodie0 c4 h epir0 11 h ack0 nack0 rle0 C dnr0 nod0 eod0 sod0 c5 h epba0 00 h page0 0 0 0 a06 a05 a04 a03 c6 h eplen0 0xxx. xxxx b 0 l06 l05 l04 l03 l02 l01 l00 c7 h reserved epsel = 0xxx.x001 b endpoint 1 registers c1 h epbc1 00 h stall1 0 0 gepie1 sofde1 ince1 0 dbm1 c2 h epbs1 20 h ubf1 cbf1 dir1 esp1 setrd1 setwr1 clrep1 done1 c3 h epie1 00 h aie1 naie1 rleie1 C dnrie1 nodie1 eodie1 sodie1 c4 h epir1 10 h ack1 nack1 rle1 C dnr1 nod1 eod1 sod1 c5 h epba1 00 h page1 0 0 0 a16 a15 a14 a13 c6 h eplen1 0xxx. xxxx b 0 l16 l15 l14 l13 l12 l11 l10 c7 h reserved
semiconductor group 23 c541u epsel = 0xxx.x010 b endpoint 2 registers c1 h epbc2 00 h stall2 0 0 gepie2 sofde2 ince2 0 dbm2 c2 h epbs2 20 h ubf2 cbf2 dir2 esp2 setrd2 setwr2 clrep2 done2 c3 h epie2 00 h aie2 naie2 rleie2 C dnrie2 nodie2 eodie2 sodie2 c4 h epir2 10 h ack2 nack2 rle2 C dnr2 nod2 eod2 sod2 c5 h epba2 00 h page2 0 0 0 a62 a52 a42 a32 c6 h eplen2 0xxx. xxxx b 0 l62 l52 l42 l32 l22 l12 l02 c7 h reserved epsel = 0xxx.x011 b endpoint 3 registers c1 h epbc3 00 h stall3 0 0 gepie3 sofde3 ince3 0 dbm3 c2 h epbs3 20 h ubf3 cbf3 dir3 esp3 setrd3 setwr3 clrep3 done3 c3 h epie3 00 h aie3 naie3 rleie3 C dnrie3 nodie3 eodie3 sodie3 c4 h epir3 10 h ack3 nack3 rle3 C dnr3 nod3 eod3 sod3 c5 h epba3 00 h page3 0 0 0 a63 a52 a43 a33 c6 h eplen3 0xxx. xxxx b 0 l63 l53 l43 l33 l23 l13 l03 c7 h reserved epsel = 0xxx.x100 b endpoint 4 registers c1 h epbc4 00 h stall4 0 0 gepie4 sofde4 ince4 0 dbm4 c2 h epbs4 20 h ubf4 cbf4 dir4 esp4 setrd4 setwr4 clrep4 done4 c3 h epie4 00 h aie4 naie4 rleie4 C dnrie4 nodie4 eodie4 sodie4 c4 h epir4 10 h ack4 nack4 rle4 C 4 dnr4 nod4 eod4 sod4 c5 h epba4 00 h page4 0 0 0 a64 a54 a44 a34 c6 h eplen4 0xxx. xxxx b 0 l64 l54 l44 l34 l24 l14 l04 c7 h reserved table 4 contents of the usb device and endpoint registers (addr. c1 h to c7 h ) (contd) addr register reset value bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 24 c541u digital i/o ports the c541u three 8-bit i/o ports and one 6-bit i/o port (port 1). port 0 is an open-drain bidirectional i/o port, while ports 1 to 3 are quasi-bidirectional i/o ports with internal pullup resistors. that means, when configured as inputs, ports 1 to 3 will be pulled high and will source current when externally pulled low. port 0 will float when configured as input. the output drivers of port 0 and 2 and the input buffers of port 0 are also used for accessing external memory. in this application, port 0 outputs the low byte of the external memory address, time multiplexed with the byte being written or read. port 2 outputs the high byte of the external memory address when the address is 16 bits wide. otherwise, the port 2 pins continue emitting the p2 sfr contents. in this function, port 0 is not an open-drain port, but uses a strong internal pullup fet. two port lines of port 1 (p1.0/led0, p1.1/led1) and one port line of port 3 (p3.0/led2) have the capability of driving external leds in the output low state.
semiconductor group 25 c541u timer / counter 0 and 1 timer/counter 0 and 1 can be used in four operating modes as listed in table 5 : in the timer function (c/t = 0) the register is incremented every machine cycle. therefore the count rate is f osc /6. in the counter function the register is incremented in response to a 1-to-0 transition at its corresponding external input pin (p3.4/t0, p3.5/t1). since it takes two machine cycles to detect a falling edge the max. count rate is f osc /12. external inputs int0 and int1 (p3.2, p3.3) can be programmed to function as a gate to facilitate pulse width measurements. figure 10 illustrates the input clock logic. figure 10 timer/counter 0 and 1 input clock logic table 5 timer/counter 0 and 1 operating modes mode description tmod input clock m1 m0 internal external (max) 0 8-bit timer/counter with a divide-by-32 prescaler 00 f osc /6x32 f osc /12x32 1 16-bit timer/counter 1 1 f osc /6 f osc /12 2 8-bit timer/counter with 8-bit autoreload 10 3 timer/counter 0 used as one 8-bit timer/counter and one 8-bit timer timer 1 stops 11 mcs03117 1 & osc c/t = 0 c/t = 1 control =1 6 tr1 p3.5/t1 (tmod) p3.2/int0 f timer 0/1 input clock osc /6 p3.4/t0 tr0 gate p3.3/int1 _ <
semiconductor group 26 c541u ssc interface the c541u microcontroller provides a synchronous serial channel unit, the ssc. this interface is compatible to the popular spi serial bus interface. figure 11 shows the block diagram of the ssc. the central element of the ssc is an 8-bit shift register. the input and the output of this shift register are each connected via a control logic to the pin p1.3 / sri (ssc receiver in) and p1.4 / sto (ssc transmitter out). this shift register can be written to (sfr stb) and can be read through the receive buffer register srb. figure 11 ssc block diagram the ssc has implemented a clock control circuit, which can generate the clock via a baud rate generator in the master mode, or receive the transfer clock in the slave mode. the clock signal is fully programmable for clock polarity and phase. the pin used for the clock signal is p1.2/ sclk. when operating in slave mode, a slave select input is provided which enables the ssc interface and also will control the transmitter output. the pin used for this is p1.5 / sls . the ssc control block is responsible for controlling the different modes and operation of the ssc, checking the status, and generating the respective status and interrupt signals. clock divider clock selection receive buffer register int. enable reg. control register . . . f osc shift register stb srb pin control logic pin pin pin pin p1.2 / sclk p1.3 / sri p1.4 / sto p1.5 / sls scien ssccon scf status register control logic interrupt internal bus mcb03379
semiconductor group 27 c541u usb module the usb module in the c541u handles all transactions between the serial usb bus and the internal (parallel) bus of the microcontroller. the usb module includes several units which are required to support data handling with the usb bus : the on-chip usb bus transceiver, the usb memory with two pages of 128 bytes each, the memory management unit (mmu) for usb and cpu memory access control, the udc device core for usb protocol handling, the microcontroller interface with the usb specific special function registers and the interrupt control logic. a clock generation unit provides the clock signal for the usb module for full speed and low speed usb operation. figure 12 shows the block diagram of the functional units of the usb module with their interfaces. figure 12 usb module block diagram mcb03380 pin pin pin pin xtal1 xtal2 d+ d- usb bus osc. 12 mhz (on-chip) transceiver x 4 pll 2 48 mhz 6 mhz usb page 0 (128 x 8) f 00 00 data data control usb memory management mmu interrupt generation sfr addr. 11 core device usb mcu interface module usb internal bus memory page 1 (udc) control h h h 7 7 h f address
semiconductor group 28 c541u usb full-speed registers two different kinds of registers are implemented for full speed operation in the usb module. the global registers (gepir, epsel, adroff, usbval) describe the basic functionality of the complete usb module and can be accessed via unique sfr addresses. for reduction of the number of sfr addresses which are needed to control the usb module inside the c541u, device registers and endpoint registers are mapped into an sfr address block of seven sfr addresses (c1 h to c7 h ). the endpoint specific functionality of the usb module is controlled via the device registers dcr, dpwdr, dier, dirr and the frame number registers. an endpoint register set is available for each endpoint (n=0..4) and describes the functionality of the selected endpoint. figure 13 explains the structure of the usb module registers. figure 13 register structure of the usb module d global registers epsel(d2 h ) endpoint 0 registers epbc0 epbs0 epie0 epir0 epba0 eplen0 c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved endpoint 1 registers epbc1 epbs1 epie1 epir1 epba1 eplen1 c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved endpoint 2 registers epbc2 epbs2 epie2 epir2 epba2 eplen2 c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved endpoint 3 registers epbc3 epbs3 epie3 epir3 epba3 eplen3 c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved endpoint 4 registers epbc4 epbs4 epie4 epir4 epba4 eplen4 c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved device registers dcr dier dirr fnrl c1 h c2 h c3 h c4 h c5 h c6 h c7 h reserved dpwdr fnrh .0 .1 .2 .7 usbval(d3 h ) adroff(d4 h ) gepir(d6 h ) .0 .1 .2 .7 .6 .5 .4 .3 .0 .1 .2 .4 .3 .5 .0 .1 .2 .4 .3 00 0 0 0000 decoder
semiconductor group 29 c541u interrupt system the c541u provides seven interrupt sources with two priority levels. five interrupts can be generated by the on-chip peripherals (timer 0, timer 1, ssc interface, and usb module), and two interrupts may be triggered externally (p3.2/int0 and p3.3/int1 ). figure 14 to 16 give a general overview of the interrupt sources and illustrate the request and control flags which are described in the next sections. figure 14 interrupt request sources (part 1) ea et0 tf0 ien0.1 tcon.5 000b h ien0.7 low priority mct03684 bit addressable request flag is cleared by hardware ip0.1 pt0 high priority tcon.7 tf1 et1 ien0.3 h 001b timer 1 timer 0 ien0.0 tcon.1 ie0 0003 ex0 h overflow overflow int0 p3.2 / it0 tcon.0 itcon.0 itcon.1 >1 itcon.3 tcon.2 p3.3 / int1 it1 itcon.2 >1 ien0.2 tcon.3 ie0 0013 ex1 h ip0.3 pt1 ip0.0 px0 px1 ip0.2
semiconductor group 30 c541u figure 15 interrupt request sources (part 2) endpoint 4 interrupts endpoint 3 interrupts endpoint 2 interrupts low priority high priority 004b h euei ien1.1 ip1.1 puei ien0.7 ea bit addressable request flag is cleared by hardware after the corresponding register has been read. endpoint 0 interrupts 3 1 ack0 nack0 rle0 dnr0 nod0 eod0 aie0 epie0.7 naie0 epie0.6 rleie0 epie0.5 dnrie0 epie0.3 nodie0 epie0.2 eodie0 epie0.1 epir0.7 epir0.6 epir0.5 epir0.3 epir0.2 epir0.1 endpoint 1 interrupts 3 1 endpoint interrupts 0043 h essc ien1.0 ssc wcen tcen scien.1 scien.0 3 1 scf.0 wcol scf.1 tc interrupts pssc ip1.0 gepie0 epbc0.4 epi0 gepir.0 sod0 sodie0 epie0.0 epir0.0 low speed interrupts 3 1 susp suspie usbpwd.3 dadd daddie usbpwd.2 usbpwd.5 usbpwd.4 setup packet out packet usb reset
semiconductor group 31 c541u figure 16 interrupt request sources (part 3) table 6 interrupt source and vectors interrupt source interrupt vector address interrupt request flags (sfrs) external interrupt 0 0003 h ie0 timer 0 overflow 000b h tf0 external interrupt 1 0013 h ie1 timer 1 overflow 001b h tf1 ssc interrupt 0043 h tc, wcol usb endpoint interrupt 004b h in sfrs epir0-4 and gepir usb device interrupt 0053 h in sfrs dirr and gepir wake-up from power down 007b h C low priority high priority ie0.7 ea 0053 h ip1.2 pudi 3 1 se0i dai ddi sbi sei sti sui se0ie dier.7 daie dier.6 ddie dier.5 sbie dier.4 seie dier.3 stie dier.2 suie dier.1 dirr.7 dirr.6 dirr.5 dirr.4 dirr.3 dirr.2 dirr.1 eudi ien1.2 sofi sofie dier.0 dirr.0 device interrupts bit addressable request flag is cleared by hardware after the corresponding register has been read. drvi drvie dpwdr.7 gepir.7
semiconductor group 32 c541u fail save mechanisms the c541u offers enhanced fail safe mechanisms, which allow an automatic recovery from software upset or hardware failure : C a programmable watchdog timer (wdt), with variable time-out period from 256 m s up to approx. 0.55 m s at 12 mhz. C an oscillator watchdog (owd) which monitors the on-chip oscillator and forces the microcontroller into reset state in case the on-chip oscillator fails; it also provides the clock for a fast internal reset after power-on. the watchdog timer in the c541u is a 15-bit timer, which is incremented by a count rate of f osc /12 or f osc /192. the system clock of the c541u is divided by two prescalers, a divide-by-two and a divide-by-16 prescaler which are selected by bit wdtpsel (wdtrel.7). for programming of the watchdog timer overflow rate, the upper 7 bit of the watchdog timer can be written. figure 8-17 shows the block diagram of the watchdog timer unit. figure 17 block diagram of the watchdog timer the watchdog timer can be started by software (bit swdt) but it cannot be stopped during active mode of the c541u. if the software fails to refresh the running watchdog timer an internal reset will be initiated on watchdog timer overflow. for refreshing of the watchdog timer the content of the sfr wdtrel is transfered to the upper 7-bit of the watchdog timer. the refresh sequence consists of two consequtive instructions which set the bits wdt and swdt each. the reset cause (external reset or reset caused by the watchdog) can be examined by software (flag wdts). it must be noted, however, that the watchdog timer is halted during the idle mode and power down mode of the processor. mcb03384 wdcon (co ) h osc f - --- owds wdts wdt swdt 2 16 14 07 8 wdtl wdth / 6 external hw reset control logic 6 70 wdt reset-request wdtpsel wdtrel
semiconductor group 33 c541u oscillator watchdog the oscillator watchdog unit serves for three functions: C monitoring of the on-chip oscillator's function the watchdog supervises the on-chip oscillator's frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is brought into reset; if the failure condition disappears (i.e. the on- chip oscillator has a higher frequency than the rc oscillator), the part executes a final reset phase of typ. 1 ms in order to allow the oscillator to stabilize; then the oscillator watchdog reset is released and the part starts program execution again. C fast internal reset after power-on the oscillator watchdog unit provides a clock supply for the reset before the on-chip oscillator has started. the oscillator watchdog unit also works identically to the monitoring function. C control of external wake-up from software power-down mode (description see chapter 9) when the power-down mode is left by a low level at the int0 pin or by the usb, the oscillator watchdog unit assures that the microcontroller resumes operation (execution of the power- down wake-up interrupt) with the nominal clock rate. in the power-down mode the rc oscillator and the on-chip oscillator are stopped. both oscillators are started again when power-down mode is released. when the on-chip oscillator has a higher frequency than the rc oscillator, the microcontroller starts operation after a final delay of typ. 1 ms in order to allow the on-chip oscillator to stabilize.
semiconductor group 34 c541u figure 18 functional block diagram of the oscillator watchdog int. clock xtal2 xtal1 owds mcd03385 wdcon (c0 ) h 3 mhz f rc delay 1 f 2 f 2 f 1 f < activity on start / stop start / stop mode activated power - down power-down mode wake - up interrupt internal reset 10 p3.2 / int0 control ws (pcon1.4) (pcon1.7) ewpd >1 frequency comparator rc on-chip oscillator logic oscillator logic control usb bus
semiconductor group 35 c541u power saving modes the c541u provides two basic power saving modes, the idle mode and the power down mode. C idle mode in the idle mode the main oscillator of the c541u continues to run, but the cpu is gated off from the clock signal. however, the interrupt system, the ssc, the usb module, and the timers with the exception of the watchdog timer are further provided with the clock. the cpu status is preserved in its entirety : the stack pointer, program counter, program status word, accumulator, and all other registers maintain their data during idle mode. the idle mode can be terminated by activating any enabled interrupt. or by a hardware reset. C power down mode in the power down mode, the rc osciillator and the on-chip oscillator which operates with the xtal pins is stopped. therefore, all functions of the microcontroller are stopped and only the contents of the on-chip ram, xram and the sfr's are maintained. the power down mode can be left either by an active reset signal or by a low signal at the p3.2/int0 pin or any activity on the usb bus. using reset to leave power down mode puts the microcontroller with its sfrs into the reset state. using the int0 pin or usb bus for power down mode exit maintains the state of the sfrs, which has been frozen when power down mode is entered. in the power down mode of operation, v dd can be reduced to minimize power consumption. it must be ensured, however, that v dd is not reduced before the power down mode is invoked, and that v dd is restored to its normal operating level, before the power down mode is terminated. table 7 gives a general overview of the entry and exit procedures of the power saving modes. table 7 power saving modes overview mode entering 2-instruction example leaving by remarks idle mode orl pcon, #01h orl pcon, #20h ocurrence of an interrupt from a peripheral unit cpu clock is stopped; cpu maintains their data; peripheral units are active (if enabled) and provided with clock hardware reset power down mode orl pcon, #02h orl pcon, #40h hardware reset oscillator is stopped; contents of on-chip ram and sfrs are maintained; short low pulse at pin p3.2/int0 or activity on the usb bus
semiconductor group 36 c541u otp memory operation the c541u contains a 8k byte one-time programmable (otp) program memory. with the c541u fast programming cycles are achieved (1 byte in 100 m sec). also several levels of otp memory protection can be selected. for programming of the device, the c541u must be put into the programming mode. this typically is done not in-system but in a special programming hardware. in the programming mode the c541u operates as a slave device similar as an eprom standalone memory device and must be controlled with address/data information, control lines, and an external 11.5v programming voltage. figure 19 shows the pins of the c541u-1e which are required for controlling of the otp programming mode. figure 19 programming mode configuration port 0 d0-d7 v dd v ss c541u prog a0-a7 / port 2 ea /v pp pmsel0 psel reset psen pmsel1 prd a8-a12 pale xtal1 xtal2
semiconductor group 37 c541u pin configuration in programming mode figure 20 pin configuration of the c541u in programming mode (top view) 6 7 8 9 10 11 12 13 14 15 16 17 5 4 3 2 1 4443424140 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 n.c. n.c. n.c. n.c. n.c. n.c. n.c. v dd v ss pmsel0 n.c. pmsel1 psel prd pale reset d3 n.c. d2 d1 d0 d4 d5 d6 d7 ea /v pp n.c. psen a7 a6 a5 prog 28 gnd gnd xtal2 xtal1 v ss v dd a0/a8 a1/a9 a2/a10 a3/a11 a4/a12 programming mode c541u gnd
semiconductor group 38 c541u the following table 8 contains the functional description of all c541u-1e pins which are required for otp memory programming. table 8 pin definitions and functions in programming mode symbol pin num- bers i/o*) function p-lcc-44 reset 10 i reset this input must be at static 1 (active) level during the whole programming mode. pmsel0 pmsel1 11 13 i i programming mode selection pins these pins are used to select the different access modes in programming mode. pmsel1,0 must satisfy a setup time to the rising edge of pale. when the logic level of pmsel1,0 is changed, pale must be at low level. psel 14 i basic programming mode select this input is used for the basic programming mode selection and must be switched according figure 10-21 . prd 15 i programming mode read strobe this input is used for read access control for otp memory read, version byte read, and lock bit read operations. pale 16 i programming mode address latch enable pale is used to latch the high address lines. the high address lines must satisfy a setup and hold time to/from the falling edge of pale. pale must be at low level whenever the logic level of pmsel1,0 is changed. xtal2 20 o xtal2 output of the inverting oscillator amplifier. xtal1 21 i xtal1 input to the oscillator amplifier. *) i = input o = output pmsel 1 pmsel 0 access mode 00reserved 0 1 read version bytes 1 0 program/read lock bits 1 1 program/read otp memory byt e
semiconductor group 39 c541u a0/a8 - a7 24 - 31 i address lines p2.0-7 are used as multiplexed address input lines a0-a7 and a8- a12. a8-a12 must be latched with pale. psen 32 i program store enable this input must be at static 0 level during the whole programming mode. prog 33 i programming mode write strobe this input is used in programming mode as a write strobe for otp memory program and lock bit write operations during basic programming mode selection a low level must be applied to prog . ea /v pp 35 i external access / programming voltage this pin must be at 11.5 v (v pp ) voltage level during programming of an otp memory byte or lock bit. during an otp memory read operation this pin must be at high level (v ih ). this pin is also used for basic programming mode selection. at basic programming mode selection a low level must be applied to ea /v pp . d0 - 7 43 - 36 i/o data lines 0-7 during programming mode, data bytes are read or written from or to the c541u via the bidirectional d0-7 lines which are located at port 0. v ss 9, 22 C circuit ground potential must be applied to these pins in programming mode. v dd 8, 23 C power supply terminal must be applied to these pins in programming mode. n.c. 1 - 7, 12,, 34, 44 C not connected these pins should not be connected in programming mode. gnd 17 - 19 i ground pins in programming mode these pins must be connected to v il level. *) i = input o = output table 8 pin definitions and functions in programming mode (contd) symbol pin num- bers i/o*) function p-lcc-44
semiconductor group 40 c541u basic programming mode selection the basic programming mode selection scheme is shown in figure 21 . figure 21 basic programming mode selection reset psen prog ea /v pp 1 0 psel 0 v dd clock (xtal1/xtal2) 5v stable prd pale 1 0 ready for access mode selection during this period signals are not actively driven 0v v ih1 v pp pmsel1,0 0,1
semiconductor group 41 c541u lock bits programming / read the c541u has two programmable lock bits which, when programmed according tabie 10 , provide four levels of protection for the on-chip otp code memory. the state of the lock bits can also be read. table 9 access modes selection access mode ea / v pp prog prd pmsel address (port 2) data (port 0) 10 program otp memory byte v pp hh h a0-7 a8-15 d0-7 read otp memory byte v ih h program otp lock bits v pp hh l Cd1,d0 see table 10 read otp lock bits v ih h read otp version byte v ih h l h byte addr. of sign. byte d0-7 table 10 lock bit protection types lock bits at d1,d0 protection level protection type d1 d0 1 1 level 0 the otp lock feature is disabled. during normal operation of the c541u, the state of the ea pin is not latched on reset. 1 0 level 1 during normal operation of the c541u, movc instructions executed from external program memory are disabled from fetching code bytes from internal memory. ea is sampled and latched on reset. an otp memory read operation is only possible using the otp verification mode for protection level 1. further programming of the otp memory is disabled (reprogramming security). 0 1 level 2 same as level 1, but also otp memory read operation using otp verification mode is disabled. 0 0 level 3 same as level 2; but additionally external code execution by setting ea =low during normal operation of the c541u is no more possible. external code execution, which is initiated by an internal program (e.g. by an internal jump instruction above the rom boundary), is still possible.
semiconductor group 42 c541u absolute maximum ratings note: stresses above those listed under absolute maximum ratings may cause permanent damage of the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for longer periods may affect device reliability. during absolute maximum rating overload conditions ( v in > v dd or v in < v ss ) the voltage on v dd pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. operating conditions parameter symbol limit values unit notes min. max. storage temperature t st C 65 150 c C voltage on v dd pins with respect to ground ( v ss ) v dd C0.5 6.5 vC voltage on any pin with respect to ground ( v ss ) v in C0.5 v dd + 0.5 vC input current on any pin during overload condition C 10 10 ma C absolute sum of all input currents during overload condition C | 100 | ma C power dissipation p diss CtbdwC parameter symbol limit values unit notes min. max. supply voltage v dd 4.25 5.5 v C ground voltage v ss 0 vC ambient temperature t a 070cC cpu clock f cpu 212mhzC
semiconductor group 43 c541u dc characteristics (operating conditions apply) notes see next page parameter symbol limit values unit test condition min. max. input low voltage (except ea , reset) v il C 0.5 0.2 v dd C 0.1 vC input low voltage (ea ) v il1 C 0.5 0.2 v dd C 0.3 vC input low voltage (reset) v il2 C 0.5 0.2 v dd + 0.1 vC input high voltage (except xtal1, reset and ea ) v ih 0.2 v dd + 0.9 v dd + 0.5 v C input high voltage to xtal1 v ih1 0.7 v dd v dd + 0.5 v C input high voltage to reset and ea v ih2 0.6 v dd v dd + 0.5 v C output low voltage ports 1, 2, 3 p1.0, p1.1, p3.0 v ol C C 0.45 0.45 v v i ol = 1.6 ma 1) i ol =10 ma 1) output low voltage (ale, psen ) v ol1 C0.45v i ol = 3.2 ma 1) output low voltage (port 0) v ol2 C0.6v i ol = 3.2 ma 1) output high voltage (ports 1, 2, 3) v oh 2.4 0.9 v dd C C v i oh =C80 m a, i oh =C10 m a output high voltage (port 0 in external bus mode, ale, psen ) v oh2 2.4 0.9 v dd C C v i oh = C 800 m a i oh =C80 m a 2) logic 0 input current (ports 1, 2, 3) i il C10 C60 m a v in =0.45v logical 1-to-0 transition current (ports 1, 2, 3) i tl C65 C650 m a v in =2v input leakage current (port 0, ea ) i li C 1 m a0.45< v in < v dd pin capacitance c io C10pf f c =1mhz, t a =25 c 7) overload current i ov C 5ma 6) 7) programming voltage v pp 10.9 12.1 v 11.5 v 5%
semiconductor group 44 c541u power supply current notes : 1) capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the v ol of ale and port 3. the noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operation. in the worst case (capacitive loading > 100 pf), the noise pulse on ale line may exceed 0.8 v. in such cases it may be desirable to qualify ale with a schmitt-trigger, or use an address latch with a schmitt-trigger strobe input. 2) capacitive loading on ports 0 and 2 may cause the v oh on ale and psen to momentarily fall below the 0.9 v dd specification when the address lines are stabilizing. 3) i pd (power-down mode) is measured under following conditions: ea =port 0= v dd ; xtal2 = n.c.; xtal1 = v ss ; reset = v ss ; all other pins are disconnected. the usb transceiver is switched off; 4) i dd (active mode) is measured with: xtal1 driven with t clch , t chcl =5ns, v il = v ss +0.5v, v ih = v dd C 0.5 v; xtal2 = n.c.; ea = reset = port 0 = port 1 = v dd ; all other pins are disconnected. i dd would be slightly higher if a crystal oscillator is used (appr. 1 ma). 5) i dd (idle mode) is measured with all output pins disconnected and with all peripherals disabled; xtal1 driven with t clch , t chcl =5ns, v il = v ss + 0.5 v, v ih = v dd C 0.5 v; xtal2 = n.c.; ea = reset = v ss ; port 0 = v dd ; all other pins are disconnected; 6) overload conditions under operating conditions occur if the voltage on the respective pin exceeds the specified operating range (i.e. v ov > v dd + 0.5 v or v ov < v ss - 0.5 v). the absolute sum of input currents on all port pins may not exceed 50 ma. the supply voltage v dd and v ss must remain within the specified limits. 7) not 100% tested, guaranteed by design characterization. 8) the typical i dd values are periodically measured at t a = +25 c but not 100% tested. 9) the maximum i dd values are measured under worst case conditions ( t a = 0 c and v dd =5.5v) parameter symbol limit values unit test condition typ. 8) max. 9) active mode 12 mhz i dd 25 30 ma 4) idle mode 12 mhz i dd 15 20 ma 5) power-down mode i pd 550 m a v dd =2 ? 5.5 v 3)
semiconductor group 45 c541u ac characteristics (operating conditions apply) ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) program memory characteristics *) interfacing the c541u to devices with float times up to 28 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. **) for correct function of the usb module the c541u must operate with 12 mhz external clock. the microcontroller (except the usb module) operates down to 2 mhz. parameter symbol limit values unit 10-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp = 2 mhz to 12 mhz **) min. max. min. max. ale pulse width t lhll 43 C clp - 40 C ns address setup to ale t avll 13 C tcl hmin -20 C ns address hold after ale t llax 13 C tcl hmin -20 C ns ale to valid instruction in t lliv C 80 C 2 clp - 87 ns ale to psen t llpl 13 C tcl lmin -20 C ns psen pulse width t plph 86 C clp+ tcl hmin -30 Cns psen to valid instruction in t pliv C51C clp+ tcl hmin - 65 ns input instruction hold after psen t pxix 0C0Cns input instruction float after psen t pxiz *) C23C tcl lmin -10 ns address valid after psen t pxav *) 28 C tcl lmin - 5 C ns address to valid instruction in t aviv C 140 C 2 clp + tcl hmin -60 ns address float to psen t azpl 0 0Cns
semiconductor group 46 c541u ac characteristics (contd) external data memory characteristics parameter symbol limit values unit 10-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp= 2 mhz to 12 mhz min. max. min. max. rd pulse width t rlrh 180 C 3 clp - 70 C ns wr pulse width t wlwh 180 C 3 clp - 70 C ns address hold after ale t llax2 56 C clp - 27 C ns rd to valid data in t rldv C110C 2 clp+ tcl hmin - 90 ns data hold after rd t rhdx 00Cns data float after rd t rhdz C 63 C clp - 20 ns ale to valid data in t lldv C 200 C 4 clp - 133 ns address to valid data in t avdv C 211 C 4 clp + tcl hmin -155 ns ale to wr or rd t llwl 66 166 clp + tcl lmin - 50 clp+ tcl lmin + 50 ns address valid to wr t avwl 70 C 2 clp - 97 C ns wr or rd high to ale high t whlh 858tcl hmin - 25 tcl hmin + 25 ns data valid to wr transition t qvwx 8Ctcl lmin - 25 C ns data setup before wr t qvwh 163 C 3 clp + tcl lmin - 120 Cns data hold after wr t whqx 8Ctcl hmin - 25 C ns address float after rd t rlaz C0C 0 ns
semiconductor group 47 c541u ac characteristics (contd) external clock drive characteristics parameter symbol cpu clock = 12 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/clp = 2 to 12 mhz unit min. max. min. max. oscillator period clp 83.3 83.3 83.3 500 ns high time tcl h 33 C 33 clp-tcl l ns low time tcl l 33 C 33 clp-tcl h ns rise time t r C 12 C 12 ns fall time t f C 12 C 12 ns oscillator duty cycle dc 0.4 0.6 33 / clp 1 - 33 / clp C clock cycle tcl 33 50 clp * dc min clp * dc max ns ssc interface characteristics parameter symbol limit values unit min. max. clock cycle time : master mode slave mode t sclk t sclk 667 667 C C ns ns clock high time t sch 300 C ns clock low time t scl 300 C ns data output delay t d C 100 ns data output hold t ho 0Cns data input setup t s 100 C ns data input hold t hi 50 C ns tc bit set delay t dtc C8 clpns sls low to first sclk clock edge t sc 2 t clcl Cns last sclk clock edge to sls high t cs t clcl Cns sls low to sto active t ts 0 100 ns sls high to sto tristate t st C 100 ns data output delay (already defined) t d C 100 ns
semiconductor group 48 c541u figure 22 program memory read cycle mct00096 ale psen port 2 lhll t a8 - a15 a8 - a15 a0 - a7 instr.in a0 - a7 port 0 t avll plph t t llpl t lliv t pliv t azpl t llax t pxiz t pxix t aviv t pxav
semiconductor group 49 c541u figure 23 data memory read cycle mct00097 ale psen port 2 whlh t port 0 rd t lldv t rlrh t llwl t rldv t avll t llax2 t rlaz t avwl t avdv t rhdx t rhdz a0 - a7 from ri or dpl from pcl a0 - a7 instr. in data in a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph
semiconductor group 50 c541u figure 24 data memory write cycle figure 25 external clock drive on xtal1 mct00098 ale psen port 2 whlh t port 0 wr t wlwh t llwl t qvwx t avll t llax2 t qvwh t avwl t whqx a0 - a7 from ri or dpl from pcl a0 - a7 instr.in data out a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph tcl h tcl l clp t r t f 0.2 v cc 0.7 cc v - 0.1 mct03310 xtal1 v dd v dd
semiconductor group 51 c541u figure 26 ssc master mode timing notes : shown is the data/clock relationship for cpol=cpha=1. the timing diagram is valid for the other cases accordingly. in the case of slave mode and cpha=0, the output delay for the msb applies to the falling edge of sls (if transmitter is enabled). in the case of master mode and cpha=0, the msb becomes valid after the data has been written into the shift register, i.e. at least one half sclk clock cycle before the first clock transition.
semiconductor group 52 c541u figure 27 ssc slave mode timing t sclk sch t scl t sclk (cpol = 1) sclk (cpol = 0) sls sto (cpha = 0) sto (cpha = 1) t ts t d t d t d d t t d t st cs t sc t dout 7 dout 0 dout 7 dout 1 dout 0 mct03390
semiconductor group 53 c541u ac characteristics of programming mode v dd = 5 v 10 %; v pp = 11.5 v 5%; t a = 25 c 10 c parameter symbol limit values unit min. max. ale pulse width t paw 35 C ns pmsel setup to ale rising edge t pms 10 C address setup to ale, prog , or prd falling edge t pas 10 C ns address hold after ale, prog , or prd falling edge t pah 10 C ns address, data setup to prog or prd t pcs 100 C ns address, data hold after prog or prd t pch 0Cns pmsel setup to prog or prd t pms 10 C ns pmsel hold after prog or prd t pmh 10 C ns prog pulse width t pww 100 C m s prd pulse width t prw 100 C ns address to valid data out t pad C75ns prd to valid data out t prd C20ns data hold after prd t pdh 0Cns data float after prd t pdf C20ns prog high between two consecutive prog low pulses t pwh1 1C m s prd high between two consecutive prd low pulses t pwh2 100 ns xtal clock period t clkp 83.3 500 ns
semiconductor group 54 c541u figure 28 programming code byte - write cycle timing t paw t pms pah t pas t a8-a13 a0-a7 d0-d7 pcs t pww t pch t t pwh mct03369 h, h pale pmsel1,0 port 2 port 0 prog
semiconductor group 55 c541u figure 29 verify code byte - read cycle timing t paw t pms pah t pas t a8-13 a0-7 pad t d0-7 t pdh t pdf prd t pcs t prw t pch t t pwh mct03392 h, h pale pmsel1,0 port 2 port 0 prd notes: prog must be high during a programming read cycle.
semiconductor group 56 c541u figure 30 lock bit access timing figure 31 version byte read timing h, l h, l d0, d1 d0, d1 t pcs pms t pmh t t pch pww t pms t prd t t pdh pdf t pmh t prw t mct03393 pmsel1,0 port 0 prog prd pale should be low during a lock bit read / write cycle. note: e. g. fd d0-7 t pcs pms t t pdh pdf t pmh t mct03394 port 2 port 0 prd pmsel1,0 l, h h prw t prd t pch t prog must be high during a programming read cycle. note:
semiconductor group 57 c541u otp verification characteristics otp verification mode for protection level 1 figure 32 otp verification mode for protection level 1 parameter symbol limit values unit min. typ max. ale pulse width t awd C2 t clcl Cns ale period t acy C 12 t clcl Cns data valid after ale t dva CC4 t clcl ns data stable after ale t dsa 8 t clcl CCns p3.5 setup to ale low t as C t clcl Cns oscillator frequency 1/ t clcl 4C6mhz mct02613 t acy t awd t dsa dva t t as data valid ale port 0 p3.5
semiconductor group 58 c541u usb transceiver characteristics (operating conditions apply) notes : 1) this value includes an external resistor of 30 w 1% (see load for d+/d- diagram for testing details) 2) the crossover point is in the range of 1.3v to 2.0v for the high speed mode with a 50pf capacitance. in the low-speed mode with a 100pf or greater capacitance, the crossover point is in the range of 1.3v to 2.0v. parameter symbol limit values unit test condition min. max. output impedance (high state) r dh 28 43 w 1) output impedance (low state) r dl 28 51 w input leakage current i i C 5 m a v in = v ss or v dd tristate output off-state current i oz C 10 m a v out = v ss or v dd 1) crossover point v cr 1.3 2.0 v 2) parameter symbol limit values unit min. max. high speed mode rise time t fr 420ns high speed mode fall time t ff 420ns low speed mode rise time t lr 75 300 ns low speed mode fall time t lf 75 300 ns
semiconductor group 59 c541u figure 33 ac testing: input, output waveforms figure 34 ac testing : float waveforms figure 35 load for d+/d- v dd v dd v dd ac inputs during testing are driven at v dd - 0.5 v for a logic 1 and 0.45 v for a logic 0. timing measurements are made at v ihmin for a logic 1 and v ilmax for a logic 0. for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs and begins to float when a 100 mv change from the loaded v oh / v ol level occurs. i ol / i oh 3 20 ma test point 30 k w 15 k w d.u.t c l 2.8 v 1.5 k w *) s1 mcs03425 c l l c l c = 50 pf, full speed = 50 pf, low speed (min. timing) = 350 pf, low speed (max. timing) *) 1.5 k w on d- (low speed) or d+ (full speed) only test s1 d- / ls d+ / ls d- / fs d+ / fs open open close close 3.3v 27 w d.u.t. d+/d-
semiconductor group 60 c541u figure 36 recommended oscillator circuits for crystal oscillator figure 37 recommended external capacitor for on-chip usb transceiver mcs03426 c c 2 - 12 mhz xtal2 xtal1 xtal1 xtal2 n.c. external oscillator signal crystal oscillator mode driving from external source crystal mode: c = 20 pf 10 pf (incl. stray capacitance) c541u 2 v ss c = 6.8nf 9
semiconductor group 61 c541u figure 38 p-lcc-44-1 package outline plastic package, p-lcc-44-1 (smd) (plastic leaded chip carrier package) gpl05102 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information dimensions in mm smd = surface mounted device


▲Up To Search▲   

 
Price & Availability of SABC541U-1EN

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X